package com.movitech.mobile.ddzy.bpm.vo.cgr;

import com.movitech.mobile.cz.base.supplier.entity.ext.ExtSSuppliers;

import java.util.ArrayList;
import java.util.List;
import java.util.Map;

/**
 * @author luodz
 * @version 1.0.0
 * @description
 * @createTime 2022/07/28
 * @copyright Copyright ©️ 2022 北京魔马科技
 */
public class CgrFlowForm {

    private String flowCode;

    private List<CgrFlowFormItem> flowForm;

    public CgrFlowForm() {
        this.flowForm = new ArrayList<>();
    }

    public List<CgrFlowFormItem> getFlowForm() {
        return flowForm;
    }

    public CgrFlowFormItem addItem(String key, String value) {
        CgrFlowFormItem item = new CgrFlowFormItem();
        item.setItemName(key);
        item.setItemValue(value);
        flowForm.add(item);
        return item;
    }

    public CgrFlowFormItem addItem(String key, String value,String zbName) {
        CgrFlowFormItem item = new CgrFlowFormItem();
        item.setItemName(key);
        item.setItemValue(value);
        item.setItemZBName(zbName);
        flowForm.add(item);
        return item;
    }

    public static CgrFlowFormItem createItem(String key, String value) {
        CgrFlowFormItem item = new CgrFlowFormItem();
        item.setItemName(key);
        item.setItemValue(value);
        return item;
    }

    public String getFlowCode() {
        return flowCode;
    }

    public void setFlowCode(String flowCode) {
        this.flowCode = flowCode;
    }
}
